package com.xnew.userOrg.service;


import com.xnew.bean.common.SysOrgUserInfo;
import com.xnew.bean.common.SysUserInfo;
import com.xnew.utils.DataInput;
import com.xnew.utils.DataOutput;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Service
public interface SysOrgInfoService {

    /**
     * 删除机构用户
     * @param orgId
     */
    void delSysOrgUser(String orgId);
    void delSysOrgUser(String userInfoNo,String orgId);
    void updateSysOrgUserStatus(String orgId,String status);

    /**
     * 新增机构用户
     * @param record
     * @param userInfo
     * @return
     * @throws Exception
     */
    DataOutput insertOrgUser(SysOrgUserInfo record, SysUserInfo userInfo, HttpServletRequest request) throws Exception;

    /**
     * 查询机构用户
     * @param orgId
     * @return
     */
    SysOrgUserInfo queryOrgUser(String orgId);

    /**
     * 修改机构用户
     * @param record
     * @param userInfo
     * @throws Exception
     */
    DataOutput updateOrgUser(SysOrgUserInfo record, SysUserInfo userInfo, HttpServletRequest request) throws Exception;

    /**
     * 查询机构用户列表
     * @param input
     * @return
     * @throws Exception
     */
    List<SysOrgUserInfo> queryOrgUserList(DataInput input) throws Exception;

    /**
     * 查询待选机构用户列表
     * @param input
     * @return
     * @throws Exception
     */
    List<SysUserInfo> queryOrgUserAddRoleList(DataInput input) throws Exception;

    /**
     * 根据角色Id查询机构用户
     * @param input
     * @return
     * @throws Exception
     */
    List<SysUserInfo> queryOrgUserRoleList(DataInput input) throws Exception;

}
